package stringManipulations;

public class SubStringExercise {

	public void run(){
		String s = "";
		int j = 6;
		for(int i = 0; i <= j; i++){
			s = s+i;
		}
		System.out.println("Length: " + s.length() + " String: " + s);
		s = s.substring(0, j);
		System.out.println("Length: " + s.length() + " String: " + s);
	}
	public static void main(String[] args) {
		SubStringExercise ss = new SubStringExercise();
		ss.run();
	}

}
